Just Ctrl+Shift+P (or Command+Shift+P on MacOS) to open the tools pallet, type reindent, and pick Indentation: Reindent Lines. It should reindent all the file ...
Try this plugin: 1) Tools > New Plugin 2) Copy and paste code below 3) Save in the Packages/User directory with a .py extension (should be the default ...
Enables auto indent. smart_indent, Boolean, enabled by default. Makes auto indent a little smarter, e.g., by indenting the next line after an if statement in C.